æòÅⁿâoâiü[

confirm() Global Function


    confirm(text)

Description

    The Confirm global function prompts the user with a modal dialog and yes/no buttons which clear the dialog. These return a boolean; true if yes, false if no.

Parameters

    text

    text string; Mac UI can display 256 characters, Windows, 30 characters

Returns

    Boolean.

Example

    var shouldAdd = confirm("Add to Render Queue?");
       if (shouldAdd == "true"){
       proj.renderQueue.items.add(myCompItem);
    }